package xyz.wanhongtao.smtpclient.config;

import lombok.AllArgsConstructor;
import xyz.wanhongtao.smtpclient.object.properties.ResultEnum;

/**
 * @author wanghongtao <wanghongtao05@kuaishou.com>
 * Created on 2023-07-03
 */
@AllArgsConstructor
public class CustomException extends RuntimeException {
    Integer code;

    String message;

    CustomException(ResultEnum resultEnum) {
        this.code = resultEnum.getCode();
        this.message = resultEnum.getMessage();
    }
}
